package com.stedu.mall.orderservice;

import com.scenic.common.bean.Order;
import com.scenic.orderservice.mapper.CartMapper;
import com.scenic.orderservice.mapper.OrderMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class MyTest02 {
    @Autowired
    private OrderMapper orderMapper;
    @Autowired
    private CartMapper cartMapper;


    @Test
    public void test01(){
        Order order = new Order();
        order.setStatus(0);
        orderMapper.selectByCondition(order)
                .stream()
                .forEach(System.out::println);
    }
}
